<?php

namespace App\Models\Quiz;

class RecordRepository
{
    protected $record;

    public function __construct(QuizRecord $record)
    {
        $this->record = $record;
    }

    public function store(QuizRecord $record)
    {
        $record->saveOrFail();

        return $record;
    }

    public function batchSave(array $records)
    {
        return $this->record->insert($records);
    }
}
